<?php
class DataStaffCompanyInfoModel extends CommonModel {
    
    protected $_link                = array(
                                            'DataStaffBasic'           => array(
                                                                                'mapping_type'         => BELONGS_TO,
                                                                                'foreign_key'          => 'staff_id',
                                                                          ),
                                            'DataCompanyDepartment'    => array(
                                                                                'mapping_type'         => BELONGS_TO,
                                                                                'foreign_key'          => 'department_id',
                                                                          ),
                                            'DataCompanyStation'       => array(
                                                                                'mapping_type'         => BELONGS_TO,
                                                                                'foreign_key'          => 'station_id',
                                                                          ),
                                      );
    protected $_arr_departure_type  = array(
                                            '1' => '自动离职',
                                            '2' => '常规离职',
                                      );
    protected $_str_order_by        = 'staff_id DESC';
}